import { Msbmanage } from 'src/msbmanage/entities/msbmanage.entity';
import { Quote } from 'src/quote/entities/quote.entity';
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm';

@Entity({ name: 'supplier' })
export class Supplier {
  @PrimaryGeneratedColumn()
  _Identify: number;

  @Column()
  company: string;

  @Column()
  contact: string;

  @Column()
  tel: string;

  @OneToMany(() => Msbmanage, (msbSimpleManage) => msbSimpleManage.supplier)
  msbSimpleManages: Msbmanage[];

  @OneToMany(() => Quote, (quotes) => quotes.supplier)
  quotes: Quote[];
}
